<?php

////////////////////////////////////////////////////////////////////////////////
// Short title
////////////////////////////////////////////////////////////////////////////////

function the_short_title(){

	

echo "<a href=\"". get_permalink() . "\">". substr_replace(the_title('','',false),'...','40')."</a>";

}

////////////////////////////////////////////////////////////////////////////////
// Comment and pingback separate controls
////////////////////////////////////////////////////////////////////////////////

$bm_trackbacks = array();
$bm_comments = array();

function split_comments( $source ) {

    if ( $source ) foreach ( $source as $comment ) {

        global $bm_trackbacks;
        global $bm_comments;

        if ( $comment->comment_type == 'trackback' || $comment->comment_type == 'pingback' ) {
            $bm_trackbacks[] = $comment;
        } else {
            $bm_comments[] = $comment;
        }
    }
}

////////////////////////////////////////////////////////////////////////////////
// Most Comments
////////////////////////////////////////////////////////////////////////////////

function get_hottopics($limit = 10) {
    global $wpdb, $post;
    $mostcommenteds = $wpdb->get_results("SELECT  $wpdb->posts.ID, post_title, post_name, post_date, COUNT($wpdb->comments.comment_post_ID) AS 'comment_total' FROM $wpdb->posts LEFT JOIN $wpdb->comments ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID WHERE comment_approved = '1' AND post_date_gmt < '".gmdate("Y-m-d H:i:s")."' AND post_status = 'publish' AND post_password = '' GROUP BY $wpdb->comments.comment_post_ID ORDER  BY comment_total DESC LIMIT $limit");
    foreach ($mostcommenteds as $post) {
			$post_title = htmlspecialchars(stripslashes($post->post_title));
			$comment_total = (int) $post->comment_total;
			echo "<li><a href=\"".get_permalink()."\">$post_title&nbsp;<strong>($comment_total)</strong></a></li>";
    }
}


////////////////////////////////////////////////////////////////////////////////
// Recent Comments
////////////////////////////////////////////////////////////////////////////////
function mw_recent_comments(
	$no_comments = 10,
	$show_pass_post = false,
	$title_length = 50, 	// shortens the title if it is longer than this number of chars
	$author_length = 30,	// shortens the author if it is longer than this number of chars
	$wordwrap_length = 50, // adds a blank if word is longer than this number of chars
	$type = 'all', 	// Comments, trackbacks, or both?
	$format = '<li>%date%: <a href="%permalink%" title="%title%">%title%</a> (von %author_full%)</li>',
	$date_format = 'd.m.y, H:i',
	$none_found = '<li>Keine Kommentare vorhanden.</li>',	// None found
	$type_text_pingback = 'Pingback von',
	$type_text_trackback = 'Trackback von',
	$type_text_comment = 'von'

	) {

	//Language...
	$mwlang_anonymous = 'Anonym'; // Anonymous
	$mwlang_authorurl_title_before = 'Webseite von &lsaquo;';
	$mwlang_authorurl_title_after = '&rsaquo; besuchen';


    global $wpdb;

    $request = "SELECT ID, comment_ID, comment_content, comment_author, comment_author_url, comment_date, post_title, comment_type
				FROM $wpdb->comments LEFT JOIN $wpdb->posts ON $wpdb->posts.ID=$wpdb->comments.comment_post_ID
				WHERE post_status IN ('publish','static')";

	switch($type) {
		case 'all':
			// add nothing
			break;
		case 'comment_only':
			//
			$request .= "AND $wpdb->comments.comment_type='' ";
			break;
		case 'trackback_only':
			$request .= "AND ( $wpdb->comments.comment_type='trackback' OR $wpdb->comments.comment_type='pingback' ) ";
			break;
	 default:
 		//
			break;

	}

	if (!$show_pass_post) $request .= "AND post_password ='' ";

	$request .= "AND comment_approved = '1' ORDER BY comment_ID DESC LIMIT $no_comments";

	$comments = $wpdb->get_results($request);
    $output = '';
	if ($comments) {
    	foreach ($comments as $comment) {

			// Permalink to post/comment
			$loop_res['permalink'] = get_permalink($comment->ID). '#comment-' . $comment->comment_ID;

			// Title of the post
			$loop_res['post_title'] = stripslashes($comment->post_title);
			$loop_res['post_title'] = wordwrap($loop_res['post_title'], $wordwrap_length, ' ' , 1);

			if (strlen($loop_res['post_title']) >= $title_length) {
				$loop_res['post_title'] = substr($loop_res['post_title'], 0, $title_length) . '&#8230;';
			}

			// Author's name only
        	$loop_res['author_name'] = stripslashes($comment->comment_author);
			$loop_res['author_name'] = wordwrap($loop_res['author_name'], $wordwrap_length, ' ' , 1);

			if ($loop_res['author_name'] == '') $loop_res['author_name'] = $mwlang_anonymous;
			if (strlen($loop_res['author_name']) >= $author_length) {
				$loop_res['author_name'] = substr($loop_res['author_name'], 0, $author_length) . '&#8230;';
			}

			// Full author (link, name)
			$author_url = $comment->comment_author_url;
			if (empty($author_url)) {
				$loop_res['author_full'] = $loop_res['author_name'];
			} else {
				$loop_res['author_full'] = '<a href="' . $author_url . '" title="' . $mwlang_authorurl_title_before . $loop_res['author_name'] . $mwlang_authorurl_title_after . '">' . $loop_res['author_name'] . '</a>';
			}

/*
			// Comment excerpt
			$comment_excerpt = strip_tags($comment->comment_content);
			$comment_excerpt = stripslashes($comment_excerpt);
			if (strlen($comment_excerpt) >= $comment_length) {
				$comment_excerpt = substr($comment_excerpt, 0, $comment_length) . '...';
			}

*/

			// Comment type
			if ( $comment->comment_type == 'pingback' ) {
				$loop_res['comment_type'] = $type_text_pingback;
			} elseif ( $comment->comment_type == 'trackback' ) {
				$loop_res['comment_type'] = $type_text_trackback;
			} else {
				$loop_res['comment_type'] = $type_text_comment;
			}

			// Date of comment
			$loop_res['comment_date'] = mysql2date($date_format, $comment->comment_date);

			// Output element
			$element_loop = str_replace('%permalink%', $loop_res['permalink'], $format);
			$element_loop = str_replace('%title%', $loop_res['post_title'], $element_loop);
			$element_loop = str_replace('%author_name%', $loop_res['author_name'], $element_loop);
			$element_loop = str_replace('%author_full%', $loop_res['author_full'], $element_loop);
			$element_loop = str_replace('%date%', $loop_res['comment_date'], $element_loop);
			$element_loop = str_replace('%type%', $loop_res['comment_type'], $element_loop);


			$output .= $element_loop . "\n";


		} //foreach

		$output = convert_smilies($output);

	} else {
		$output .= $none_found;
    }

    echo $output;
}

////////////////////////////////////////////////////////////////////////////////
// excerpt features
////////////////////////////////////////////////////////////////////////////////

function the_excerpt_feature($excerpt_length=13, $allowedtags='', $filter_type='none', $use_more_link=true, $more_link_text="[+]", $force_more_link=true, $fakeit=1, $fix_tags=true) {
	if (preg_match('%^content($|_rss)|^excerpt($|_rss)%', $filter_type)) {
		$filter_type = 'the_' . $filter_type;
	}
	$text = apply_filters($filter_type, get_the_excerpt_feature($excerpt_length, $allowedtags, $use_more_link, $more_link_text, $force_more_link, $fakeit));
	$text = ($fix_tags) ? balanceTags($text) : $text;
	echo $text;
}

function get_the_excerpt_feature($excerpt_length, $allowedtags, $use_more_link, $more_link_text, $force_more_link, $fakeit) {
	global $id, $post;
	$output = '';
	$output = $post->post_excerpt;
	if (!empty($post->post_password)) { // if there's a password
		if ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
			$output = __('There is no excerpt because this is a protected post.');
			return $output;
		}
	}

	// If we haven't got an excerpt, make one.
	if ((($output == '') && ($fakeit == 1)) || ($fakeit == 2)) {
		$output = $post->post_content;
		$output = strip_tags($output, $allowedtags);
		$blah = explode(' ', $output);
		if (count($blah) > $excerpt_length) {
			$k = $excerpt_length;
			$use_dotdotdot = 1;
		} else {
			$k = count($blah);
			$use_dotdotdot = 0;
		}
		$excerpt = '';
		for ($i=0; $i<$k; $i++) {
			$excerpt .= $blah[$i] . ' ';
		}
		// Display "more" link (use css class 'more-link' to set layout).
		if (($use_more_link && $use_dotdotdot) || $force_more_link) {
			$excerpt = "<a href=\"". get_permalink() . "\">$excerpt</a>";
		} else {
			$excerpt .= ($use_dotdotdot) ? '...' : '';
		}
		 $output = $excerpt;
	} // end if no excerpt
	return $output;
}
////////////////////////////////////////////////////////////////////////////////
// end
////////////////////////////////////////////////////////////////////////////////


if ( function_exists('register_sidebar') ) {
register_sidebar(array('name'=>'Sidebar Left',
'before_widget' => '<ul class="list"><li>',
'after_widget' => '</li></ul>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
if ( function_exists('register_sidebar') )
register_sidebar(array('name'=>'Sidebar Right',
'before_widget' => '<ul class="list"><li>',
'after_widget' => '</li></ul>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));

function unregister_problem_widgets() {
unregister_sidebar_widget('Search');
unregister_sidebar_widget('FlickrRSS');
}
add_action('widgets_init','unregister_problem_widgets');
}





////////////////////////////////////////////////////////////////////////////////
// THEME OPTION FOR ZEXENGEN WORDPRESS THEME BY DEZZAIN STUDIO
////////////////////////////////////////////////////////////////////////////////


$themename = "Zexegen";
$shortname = "tn";

$wp_dropdown_rd_admin = get_categories('hide_empty=0&orderby=name');
$wp_getcat = array();
foreach ($wp_dropdown_rd_admin as $category_list) {
$wp_getcat[$category_list->cat_ID] = $category_list->cat_name;
}
$category_bulk_list = array_unshift($wp_getcat, "Choose a category:");


$options = array (


    array(	"name" => "Choose Your Global Body Font Size?",
			"id" => $shortname."_zen_body_font_size",
            "type" => "select",
            "inblock" => "css",
			"std" => "0.6875em",
			"options" => array("0.6875em", "0.75em", "0.85em", "0.875em", "0.9325em", "1em", "1.125em")),


    array(	"name" => "Choose Your Prefered Readabilitiy Line Height?",
			"id" => $shortname."_zen_global_line_height",
            "type" => "select",
            "inblock" => "css",
			"std" => "1.2em",
			"options" => array("1.2em", "1.25em", "1.3em", "1.35em", "1.4em", "1.5em")),


     array(	"name" => "Choose Your Global Body Font?",
			"id" => $shortname."_zen_body_font",
            "type" => "select",
            "inblock" => "css",
			"std" => "Verdana, Arial, Times New Roman, sans-serif",
			"options" => array(
            "Verdana, Arial, Times New Roman, sans-serif",
            "Lucida Grande, Verdana, Tahoma, Trebuchet MS",
            "Arial, Verdana, Times New Roman, sans-serif",
            "Times New Roman, Georgia, Tahoma, Trajan Pro",
            "Georgia, Times New Roman, Helvetica, sans-serif",
            "Futura LT Book, Helvetica Neue, Tahoma, Georgia",
            "Tahoma, Lucida Sans, Arial",
            "Lucida Sans, Lucida Grande, Trebuchet MS",
            "Century Gothic, Century, Georgia, Times New Roman",
            "Arial Rounded MT Bold, Arial, Verdana, sans-serif",
            "Trebuchet MS, Arial, Verdana, Helvetica, sans-serif",
            "Futura-CondensedExtraBold-Norma, Arial Black, Tahoma",
            "Delicious Heavy, Georgia, Tahoma",
            "Delicious, Delicious Heavy, Decker, Denmark",
            "Helvetica Neue, Helvetica LT Std Cond, Helvetica-Normal",
            "Humana Sans ITC, Humana Sans Md ITC, Lucida Grande, Georgia",
            "Qlassik Bold, Qlassik Medium, Trebuchet MS, Tahoma, Arial"
            )
            ),

	array(	"name" => "Choose Your Global Headline Font",
			"id" => $shortname."_zen_headline_font",
            "type" => "select",
            "inblock" => "css",
            "std" => "Anivers, Trebuchet MS, Tahoma, Arial",
			"options" => array(
            "Anivers, Trebuchet MS, Tahoma, Arial",
            "Tahoma, Lucida Sans, Arial",
            "Lucida Grande, Verdana, Tahoma, Trebuchet MS",
            "Cambria, Georgia, Geneva, Verdana",
            "Arial, Verdana, Times New Roman, sans-serif",
            "Verdana, Arial, Times New Roman, sans-serif",
            "Times New Roman, Georgia, Tahoma, Trajan Pro",
            "Georgia, Times New Roman, Helvetica, sans-serif",
            "Futura LT Book, Helvetica Neue, Tahoma, Georgia",
            "Lucida Sans, Lucida Grande, Trebuchet MS",
            "Century Gothic, Century, Georgia, Times New Roman",
            "Arial Rounded MT Bold, Arial, Verdana, sans-serif",
            "Trebuchet MS, Arial, Verdana, Helvetica, sans-serif",
            "Futura-CondensedExtraBold-Norma, Arial Black, Tahoma",
            "Delicious Heavy, Georgia, Tahoma",
            "Delicious, Delicious Heavy, Decker, Denmark",
            "Helvetica Neue, Helvetica LT Std Cond, Helvetica-Normal",
            "Humana Sans ITC, Humana Sans Md ITC, Lucida Grande, Georgia",
            "Qlassik Bold, Qlassik Medium, Trebuchet MS, Tahoma, Arial"
            )
            ),



    array(	"name" => "Choose Your Featured SmoothGallery List",
			"id" => $shortname."_zen_featured_category",
            "inblock" => "sidebar",
            "std" => "Choose a category:",
			"type" => "select",
            "options" => $wp_getcat),



    array(	"name" => "How Many Post Featured SmoothGallery List To Show?",
			"id" => $shortname."_zen_featured_sum",
            "inblock" => "sidebar",
			"type" => "select",
            "std" => "3",
			"options" => array("3", "4", "5", "6", "7", "8", "9", "10")),


    array(	"name" => "First Featured Video Embed Code",
			"id" => $shortname."_zen_featured_vid1",
            "inblock" => "vids",
            "std" => "",
			"type" => "textarea"),

    array(	"name" => "Second Featured Video Embed Code",
			"id" => $shortname."_zen_featured_vid2",
            "inblock" => "vids",
            "std" => "",
			"type" => "textarea")



);




function mytheme_zen_admin() {
global $themename, $shortname, $options;
if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
?>


<div id="custom-wrap">
<div id="custom-container">

<div id="notes"><p>Custom Field Key Value - <b>featured-images</b></p></div>

<form method="post" id="option-mz-form">


<div class="option-box">
<h5>Blog CSS Settings</h5>
<?php foreach ($options as $value) {
if (($value['inblock'] == "css") && ($value['type'] == "text")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<p><input name="<?php echo $value['id']; ?>" class="ops-select" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" /></p></div>

<?php } elseif (($value['inblock'] == "css") && ($value['type'] == "select")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<p><select name="<?php echo $value['id']; ?>" class="ops-select" id="<?php echo $value['id']; ?>">
<?php foreach ($value['options'] as $option) { ?>
<option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
<?php } ?>
</select>
</p></div>

<?php } elseif (($value['inblock'] == "css") && ($value['type'] == "textarea")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<?php $valuex = $value['id'];
$valuey = stripslashes($valuex);
$video_code = get_settings($valuey);
?>
<p><textarea name="<?php echo $valuey; ?>" cols="40%" rows="8" /><?php if ( get_settings($valuey) != "") { echo stripslashes($video_code); } else { echo $value['std']; } ?></textarea>
</p></div>
<?php }

}
?>
</div>

<div class="option-box">
<h5>Blog Sidebar SmoothGallery Featured Settings</h5>
<?php foreach ($options as $value) {
if (($value['inblock'] == "sidebar") && ($value['type'] == "text")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<p><input name="<?php echo $value['id']; ?>" class="ops-select" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" /></p></div>

<?php } elseif (($value['inblock'] == "sidebar") && ($value['type'] == "select")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<p><select name="<?php echo $value['id']; ?>" class="ops-select" id="<?php echo $value['id']; ?>">
<?php foreach ($value['options'] as $option) { ?>
<option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
<?php } ?>
</select>
</p></div>

<?php } elseif (($value['inblock'] == "sidebar") && ($value['type'] == "textarea")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<?php $valuex = $value['id'];
$valuey = stripslashes($valuex);
$video_code = get_settings($valuey);
?>
<p><textarea name="<?php echo $valuey; ?>" cols="40%" rows="8" /><?php if ( get_settings($valuey) != "") { echo stripslashes($video_code); } else { echo $value['std']; } ?></textarea>
</p></div>
<?php }

}
?>
</div>


<div class="option-box">
<h5>Blog Featured Video Settings</h5>
<?php foreach ($options as $value) {
if (($value['inblock'] == "vids") && ($value['type'] == "text")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<p><input name="<?php echo $value['id']; ?>" class="ops-select" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" /></p></div>

<?php } elseif (($value['inblock'] == "vids") && ($value['type'] == "select")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<p><select name="<?php echo $value['id']; ?>" class="ops-select" id="<?php echo $value['id']; ?>">
<?php foreach ($value['options'] as $option) { ?>
<option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
<?php } ?>
</select>
</p></div>

<?php } elseif (($value['inblock'] == "vids") && ($value['type'] == "textarea")) { ?>

<div class="pwrap">
<p><?php echo $value['name']; ?>:</p>
<?php $valuex = $value['id'];
$valuey = stripslashes($valuex);
$video_code = get_settings($valuey);
?>
<p><textarea name="<?php echo $valuey; ?>" cols="40%" rows="8" /><?php if ( get_settings($valuey) != "") { echo stripslashes($video_code); } else { echo $value['std']; } ?></textarea>
</p></div>
<?php }

}
?>
</div>









<p class="submit">
<input name="save" type="submit" class="saveme" value="Save changes" />
<input type="hidden" name="action" value="save" />
</p>
</form>

<form method="post">
<p class="submit">
<input name="reset" type="submit" class="saveme" value="Reset" />
<input type="hidden" name="action" value="reset" />
</p>
</form>
</div>
 </div>



<?php
}

function mytheme_add_zen_admin() {
global $themename, $shortname, $options;
if ( $_GET['page'] == basename(__FILE__) ) {
if ( 'save' == $_REQUEST['action'] ) {
foreach ($options as $value) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
foreach ($options as $value) {
if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } }
header("Location: themes.php?page=functions.php&saved=true");
die;
} else if( 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
delete_option( $value['id'] ); }
header("Location: themes.php?page=functions.php&reset=true");
die;
}
}
add_theme_page($themename." Options", "Blog Theme Options", 'edit_themes', basename(__FILE__), 'mytheme_zen_admin');
}



////////////////////////////////////////////////////////////////////////////////
// add theme cms pages
////////////////////////////////////////////////////////////////////////////////

function mytheme_wp_zen_head() { ?>
<link href="<?php bloginfo('template_directory'); ?>/admin/zen-admin.css" rel="stylesheet" type="text/css" />
<?php }

add_action('admin_head', 'mytheme_wp_zen_head');
add_action('admin_menu', 'mytheme_add_zen_admin');



////////////////////////////////////////////////////////////////////////////////
// add theme cms readme pages
////////////////////////////////////////////////////////////////////////////////


function zen_add_theme_page() {

    add_theme_page('Post Styling', 'Using Theme', 'switch_themes', '', 'zen_readme_page');

}

function zen_readme_page() { ?>


<div id="custom-page">

<div class="ppage">
<?php
if(file_exists(TEMPLATEPATH . '/license.php')) {
echo "<h4>Theme License And Usage</h4>";
include (TEMPLATEPATH . '/license.php');
} else {
echo "<h6>you had been detected for removing the theme license, please consult with the theme author for license removal steps</h6>";
}
?>

</div>


<h4>How to use sidebar slide features custom field?</h4> 
<div class="ppage">

In theme option, you will find <strong>Sidebar Setting</strong>. Choose your desired category to show and how many post to show/list in sidebar.
<br /><br />
In order to used the featured article custom field, you can follow this step,
<br />
<ol>
<li>When writing a post, you will see a custom field box within the write panel</li>
<img src="<?php bloginfo('template_directory'); ?>/admin/cfield.gif" alt="custom-field" />
<li>Under <strong>key</strong> box, you can insert the theme associated custom field <strong>featured-images</strong> and under <strong>value</strong> box is the <strong>full url</strong> of the image you want to show, the images do not need to resize since it will auto resize to 20% of the featured articles box width.
<li>If the <strong>key</strong> already exist, just select it in dropdown key</li>
<li>Finally press the <strong>add custom field</strong> to associated with the post</li>

</ol>

</div>



<h4>How to use sidebar list class</h4>
<div class="ppage">
There are 2 type of sidebar UL class - list class and nolist class<br /><br />
<strong>List class</strong> is for normal sidebar that had a bullet style<br /><br />
<strong>Nolist class</strong> is better compatible with plugin or images banner etc
</div>


<h4>Using Captions In Post</h4>

<div class="ppage">
<strong>Captions Left</strong><br />
&lt;span class=&quot;caption-img-left&quot;&gt;&lt;img src=&quot;images/yourimg.ext&quot; /&gt;<br />
&lt;em&gt;some text caption here..as long as you want&lt;/em&gt;&lt;/span&gt;
<br /><br />

<strong>Captions Right</strong><br />
&lt;span class=&quot;caption-img-right&quot;&gt;&lt;img src=&quot;images/yourimg.ext&quot; /&gt;<br />
&lt;em&gt;some text caption here..as long as you want&lt;/em&gt;&lt;/span&gt;
<br /><br />

<em>*Used span class rather than div and p tag for better implementation</em>
</div>


<h4>Using Variable Class Styling In Post</h4>

<div class="ppage">
&lt;p class=&quot;download&quot;&gt;This is download styling classes&lt;/p&gt;<br />
&lt;p class=&quot;warning&quot;&gt;This is warning styling classes&lt;/p&gt;<br />
&lt;p class=&quot;note&quot;&gt;This is note styling classes&lt;/p&gt;<br />
&lt;p class=&quot;alert&quot;&gt;This is alert styling classes&lt;/p&gt;<br />
&lt;p class=&quot;info&quot;&gt;This is info styling classes&lt;/p&gt;
</div>





<h4>PullQuote Left And PullQuote Right</h4>
<div class="ppage">
<strong>Pullquote-left</strong><br />
&lt;span class=&quot;pullquote-left&quot;&gt;some pullquote text here&lt;/span&gt;
<br /><br />

<strong>Pullquote-right</strong><br />
&lt;span class=&quot;pullquote-right&quot;&gt;some pullquote text here&lt;/span&gt;
<br /><br />
<em>*Used span class rather than div and p tag for better implementation

</em></div>


<h4>Image Class Alignleft, Alignright And Aligncenter</h4>
<div class="ppage">

<strong>Image Align Left Of Text Wrap</strong><br />
&lt;img src=&quot;image-url&quot; alt=&quot;img.alt&quot; class=&quot;alignleft&quot;/&gt;
<br /><br />

<strong>Image Align Right Of Text Wrap *similiar to sample</strong><br />
&lt;img src=&quot;image-url&quot; alt=&quot;img.alt&quot; class=&quot;alignright&quot;/&gt;
<br />
<br />

<strong>Image Align Center Clear Both Side</strong><br />
&lt;img src=&quot;image-url&quot; alt=&quot;img.alt&quot; class=&quot;aligncenter&quot;/&gt;<br />
<strong>or</strong><br />
&lt;img src=&quot;image-url&quot; alt=&quot;img.alt&quot; class=&quot;center&quot;/&gt;

</div>

</div>


<?php }

add_action('admin_menu', 'zen_add_theme_page');



//GsL98DGtpo0W
 